import React from "react";
import styles from "../css/ticket.module.css";
function Ticket(props) {
  console.log(props);
  return (
    <div className={styles.box1}>
      <span className={styles.sp1}>发车{props.startTime}</span>
      <span className={styles.sp2}>{props.startStation}</span>
      <span className={styles.sp3}>{props.trainNo}</span>
      <span className={styles.sp4}>￥{props.fsoftSeat.price}</span>
      <span className={styles.sp5}>到达{props.endTime}</span>
      <span className={styles.sp6}>{props.endStation}</span>
      <span className={styles.sp7}>耗时{props.timeTaken}</span>
      <span className={styles.sp8}>
        二等座:{props.ssoftSeat.ticketNum}
        {typeof props.ssoftSeat.ticketNum == "number" ? "张" : ""}
      </span>
    </div>
  );
}

export default Ticket;
